var express = require("express");
var router = express.Router();
const jwt = require("jsonwebtoken");
const { sercetKey } = require("./../config");

router.get("/username", (req, res) => {
  console.log(req.user);

  res.send({ status: 0, mes: "success", username: req.user.username });
});

router.post("/logout", (req, res) => {
  res.send({ status: 0, mes: "success" });
});

module.exports = router;
